#!/usr/bin/python 
#-*- coding=utf-8 -*-

from sproto import SprotoRpc
import socket

sproto = SprotoRpc("proto.c2s.sproto", "proto.s2c.sproto")
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("180.97.83.70", 45678))
print("client has been assigned socket name", sock.getsockname())
sock.close()
